<admintpl file="header"/>
<head/>
<body>
<div class="wrap J_check_wrap">
  <ul class="nav nav-tabs">
          <li class="active"><a href="{:U('forepart/ClientCaseIndex')}">客户案例</a></li>
          <li ><a href="{:U('forepart/ClientCaseAdd')}">添加案例</a></li>
  </ul>
  <div class="table_list">
   <form class="form-horizontal J_ajaxForm" method="post" action="{:U('forepart/ClientCaselist')}">
    <table width="100%" cellspacing="0" class="table table-hover">
      <thead>
        <tr>
          <th width="80">#</th>
          <th align="left" >客户名称</th>
          <th>展示图片 </th>
          <th>排序</th>

          <th >管理操作</th>
       
        </tr>
      </thead>
      <tbody>
      <style>
          .listorders{width: 35px;}
		  td img {width:80px; height:120px;  }
      </style>

        <foreach name="data" item="vo">
        <tr>
          <td>{$vo.id}</td>
          <td>{$vo.title}</td>
          <td>
          	<if condition="$vo['img'] neq '' ">
          	<img src="__ROOT__/{$vo.img}" >	
          	<else />
          	未上传展示图片
          	</if>
          </td>
		  <td><input type="text" class="listorders" name="list[{$vo.id}]" value="{$vo.list}" /></td>
          <td  class="text-c">
              <a href="{:U('forepart/ClientCaseEdit',array('id'=>$vo['id']))}"   >[编辑]</a>
              <a href="{:U('forepart/ClientCaseDel',array('id'=>$vo['id']))}"  class="J_ajax_del"  >[删除]</a>
          </td>

        </tr>
        </foreach>
		<tr>
		<td colspan="5">
			{$Page}
		</td>
		</tr>
      </tbody>
    </table>
      <div class="form-actions">
          <button type="submit" class="btn btn-primary btn_submit  J_ajax_submit_btn">排序</button>
      </div>
      </form>
  </div>
</div>


<script src="__ROOT__/statics/js/common.js"></script>

</body>
</html>